package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysGoodsEarn;

/**
 * 商品库存Mapper接口
 *
 * @author ruoyi
 * @date 2022-10-30
 */
public interface SysGoodsEarnMapper
{
    /**
     * 查询商品库存
     *
     * @param outGoodsId 商品库存主键
     * @return 商品库存
     */
    public SysGoodsEarn selectSysGoodsEarnByOutGoodsId(Long outGoodsId);

    /**
     * 查询商品库存列表
     *
     * @param sysGoodsEarn 商品库存
     * @return 商品库存集合
     */
    public List<SysGoodsEarn> selectSysGoodsEarnList(SysGoodsEarn sysGoodsEarn);

    /**
     * 新增商品库存
     *
     * @param sysGoodsEarn 商品库存
     * @return 结果
     */
    public int insertSysGoodsEarn(SysGoodsEarn sysGoodsEarn);

    /**
     * 修改商品库存
     *
     * @param sysGoodsEarn 商品库存
     * @return 结果
     */
    public int updateSysGoodsEarn(SysGoodsEarn sysGoodsEarn);

    /**
     * 删除商品库存
     *
     * @param outGoodsId 商品库存主键
     * @return 结果
     */
    public int deleteSysGoodsEarnByOutGoodsId(Long outGoodsId);

    /**
     * 批量删除商品库存
     *
     * @param outGoodsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysGoodsEarnByOutGoodsIds(Long[] outGoodsIds);
}
